import 'package:flutter/material.dart';

class ItemCircleOption extends StatelessWidget {
  final String imagePath;
  final String text;
  final GestureTapCallback onTap;

  const ItemCircleOption({
    Key key,
    @required this.imagePath,
    @required this.text,
    this.onTap,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        color: Colors.white,
        child: Column(
          children: [
            Image.asset(
              imagePath,
              width: (MediaQuery.of(context).size.width - 100) / 4,
            ),
            Container(
              child: Text(text),
              margin: EdgeInsets.only(top: 5),
            ),
          ],
        ),
      ),
    );
  }
}
